
<p><?php
    echo $control->getLink('test_wx_page');
    $control = new BUIWXPage('test_page');
    $control->setWXGroup('textWxGroup');
    ?>
<h4 class="text-error">add code for setup event operation</h4>
<p><?php
    echo $control->getLink('test_wx_page');
    ?></p>
<p>
    <?php
    $EventModel = new BEMEvent();
    $category = Category::model();

    $categoryInfo = $category->findAllBySql("SELECT _id,name FROM {{category}}");
    if (isset($_POST['Article'])) {
        $data = array(
            'EventModel' => $EventModel,
        );
        $EventModel->EventModel = $_POST['BEMEvent'];
        $EventModel->time = time();

        if ($articleModel->save()) {
            $this->redirect(array('index'));
        }
        $control->render('addEvent', $data);
    }
    ?>
</p>


